# 浮点数的计算
n1 = 0.1234
n2 = 0.2
print(n1+n2)

# 四舍五入 round
n3 = round(n1+n2,2)
print(n3)


import math
# 向上取整 ceil
n4 = math.ceil(n1+n2)
print(f"向上取整  的结果是{n4}")

# 向下取整 floor
n5 = math.floor((n1+n2))
print(f"向下取整的结果是{n5}")